package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.GlAudit;
import com.dkm.biz.gl.persistence.dao.GlAuditQueryDao;
import com.dkm.biz.gl.persistence.entity.GlAuditPo;
import com.dkm.biz.gl.repository.GlAuditRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:系统审计日志（针对后台操作） Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:刘启辉
 * 创建时间:2015-01-13 16:58:11
 */
@Repository
public class GlAuditRepositoryImpl extends AbstractRepository<String, GlAuditPo,GlAudit> implements GlAuditRepository{
	  
	@Resource
	private  GlAuditQueryDao glAuditQueryDao;

	public GlAudit newInstance() {
		GlAuditPo po = new GlAuditPo();
		GlAudit glAudit = SpringHelper.getBean(GlAudit.class);
		glAudit.setData(po);
		return glAudit;
	}

	public GlAudit newInstance(GlAuditPo po) {
		GlAudit glAudit = SpringHelper.getBean(GlAudit.class);
		glAudit.setData(po);
		return glAudit;
	} 
	
	@Override
	protected IQueryDao<String, GlAuditPo> getQueryDao() {
		return glAuditQueryDao;
	}
	
}
